/**
 * Text Input Structure:
 *
* <div class="mega-input {inline?} {title-ontop?} {with-icon?} {box-style?|text-style?} {strengthChecker?}">
 *     <div class="mega-input-title">[$995]</div>
 *     <i class="{some-icon}"></i>
*      <input class="titleTop strengthChecker" type="text" placeholder="{XX}">
 *     <div class="message-container mega-banner"></div>
 *     <div class="account password-status hidden"></div>
 *     <div class="account-pass-lines"><div class="register-pass-status-line"></div></div>
 * </div>
 *
 * Minimal Text Input Structure:
 *
 * <div class="mega-input">
*      <input type="text" placeholder="{XX}">
 * </div>
 *
 * Dropdown Input Structure:
 *
 * <div class="mega-input dropdown-input {inline?} {title-ontop?} {with-icon?} {box-style?|text-style?}">
 *     <input class="hidden-input" tabindex="-1" autocomplete="disabled">
 *     <div class="mega-input-title">[$995]</div>
 *      <i class="{some-icon-class}"></i>
 *      <span>{Selected option label}</span>
 *      <i class="sprite-fm-mono icon-dropdown"></i>
 *      <div class="mega-input-dropdown hidden">
 *          <div class="dropdown-scroll">
 *              <div class="option"></div>
 *          </div>
 *     </div>
 * </div>
 *
 * Minimal Dropdown Input Structure:
 *
 * <div class="mega-input dropdown-input">
 *      <span>{Selected option label}</span>
 *      <i class="sprite-fm-mono icon-dropdown"></i>
 *      <div class="mega-input-dropdown hidden">
 *          <div class="option"></div>
 *     </div>
 * </div>
 *
 * (Tiny tip: `bindDropdownEvents($select, saveOption, wrapperBlock` inits default dropdown events)
 *
 * All ? classes are optional:
 *     - inline: Makes the input an inline element, the width of which depends on the value set in it. ".text-style" has auto width by default
 *     - title-ontop: Animate title/placeholder to top of input when it is focused/has value
 *     - with-icon: Input type with icon before label
 *     - text-style: Changes input appearance. ".text-style" removes all borders and backgrounds, mostly used with ".dropdown-input". Default input is underlined (i.e. has bottom border)
 *     - box-style: Changes input appearance. ".box-style" will add border and background. Default input is underlined (i.e. has bottom border)
 *     - strengthChecker: Shows password strength checker for text inputs
 */

/* INPUTS */

/* Base input styles */
.mega-input {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    height: 36px;
    max-width: 100%;
    padding: 2px 0;
    position: relative;
    text-align: start;
    vertical-align: top;
    white-space: nowrap;
    width: 100%;
}
.mega-input input:-webkit-autofill {
    box-shadow: 0 0 0 50px var(--stroke-main) inset;
    -webkit-text-fill-color: var(--text-color-high);
}
.mega-input input::placeholder,
.mega-input textarea::placeholder {
    font: var(--text-body1);
}
.mega-input.halfSize-l {
    width: 48%;
    float: left;
}
.mega-input.halfSize-r {
    width: 48%;
    float: right;
}

/* Inline input */
.mega-input.inline {
    width: auto;
}

/* Input, textarea  and dropdown label styling */
.mega-input input,
.mega-input textarea,
.mega-input.dropdown-input > span {
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    flex: 1;
    font: var(--text-body1);
    color: var(--text-color-high);
    cursor: text;
    overflow: hidden;
    padding: 2px 8px;
    position: relative;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    z-index: 11;
}
.theme-dark .white-container-box .mega-input input,
.theme-dark .white-container-box .mega-input textarea,
.theme-dark .white-container-box .mega-input.dropdown-input > span {
    color: var(--text-color-high-inverted);
}
.mega-input textarea {
    padding: 8px;
    resize: none;
}

/* Input icons */
.mega-input > i {
    --icon-size: 24px;
    --mask-color: var(--icon-rest);
    border-radius: 0;
    display: block;
    flex-shrink: 0;
    float: none;
    padding: 0;
    position: relative;
    margin-inline-start: 3px;
    transition: var(--transition-color);
}
.mega-input:hover > i,
.mega-input.active > i {
    --mask-color: var(--icon-active);
}

/* Icons after span or input (Usually dropdown its dropdown arrow or three dots) */
.mega-input > input ~ i,
.mega-input > span ~ i {
    --mask-color: var(--icon-inactive);
    margin: 0;
    margin-inline-end: 3px;
}
.mega-input:hover > input ~ i,
.mega-input:hover > span ~ i,
.mega-input.active > input ~ i,
.mega-input.active > span ~ i {
    --mask-color: var(--icon-rest);
}

/* Input styles */

/* Default underlined input style */
.mega-input::before {
    border: 1px solid var(--stroke-mid-grey);
    border-width: 0 0 1px;
    box-sizing: border-box;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transition: var(--transition-border);
    width: 100%;
}

/* Box input style */
.mega-input.box-style {
    height: 38px;
    min-width: 150px;
}
.mega-input.box-style input::placeholder {
    opacity: 0.9;
}
.mega-input.box-style::before {
    background: var(--surface-grey-1);
    border-color: var(--stroke-grey-2);
    border-radius: 4px;
    border-width: 1px;
}
.mega-input.box-style.solid::before {
    background: var(--surface-grey-2);
}
.mega-input.box-style > i {
    margin-inline-start: 8px;
}
.mega-input.box-style > input ~ i {
    margin: 0;
    margin-inline-end: 8px;
}
.mega-input.box-style .mega-input-dropdown {
    top: -6px;
}
.mega-input.box-style.title-ontop .mega-input-title {
    top: 9px;
}
.mega-input.box-style.title-ontop.with-icon .mega-input-title {
    color: var(--text-color-high);
    padding-inline-start: 40px;
}

/* MegaInput textarea with box-style */
.mega-input.box-style.textarea {
    height: auto;
    line-height: 0;
}
.mega-input.box-style.textarea textarea {
    box-sizing: border-box;
    min-height: 100px;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}
.mega-input.box-style.textarea .textarea-scroll {
    box-sizing: border-box;
    height: 100px;
    margin: 8px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}
.mega-input.box-style.textarea.auto-height {
    padding: 4px 0;
}
.mega-input.box-style.textarea.auto-height textarea {
    min-height: 24px;
    height: 24px;
}

/* Text input style (transparent without borders) */
.mega-input.dropdown-input.text-style {
    border-radius: 4px;
    min-width: auto;
    transition: var(--transition-bg-color);
    width: auto;
}
.mega-input.text-style::before {
    display: none;
}
.mega-input.text-style > input ~ i,
.mega-input.text-style > span ~ i {
    --mask-color: var(--icon-active);
    margin-inline-end: 0;
}
.mega-input.dropdown-input.text-style:hover {
    background: var(--button-hover);
}

/* Three extra status for the inputs: hover error, active, valued */
.mega-input:hover::before {
    border-color: var(--input-text-underline-hover);
}
.mega-input.active::before {
    border-color: var(--input-text-underline-active);
}
.mega-input.error::before {
    border-color: var(--input-text-underline-error);
}
.mega-input.error .title {
    visibility: visible;
    opacity: 1;
}

/* Disabled class. Hides underline */
.mega-input.disabled {
    cursor: default;
    opacity: 1;
}
.mega-input.disabled::before {
    display: none;
}
.mega-input.box-style.disabled,
.mega-input.text-style.disabled {
    opacity: 0.5;
}
.mega-input.box-style.disabled::before {
    border-color: var(--stroke-mid-grey);
    display: block;
}
.mega-input.dropdown-input.disabled > span {
    cursor: default;
}

/* .title-ontop and "titleTop" style */
.mega-input.title-ontop {
    margin: 20px 0;
}
.mega-input.title-ontop input::placeholder {
    opacity: 0;
}
.mega-input.title-ontop .mega-input-title {
    font: var(--text-body1);
    color: var(--text-color-medium);
    display: inline-block;
    padding-inline-start: 8px;
    position: absolute;
    left: 0;
    top: 8px;
    transition: font-size 0.2s ease-in, color 0.2s ease-in, top 0.2s cubic-bezier(0.4, 0, 1, 1);
    z-index: 10;
}
.theme-dark .white-container-box .mega-input.title-ontop .mega-input-title {
    color: var(--text-color-medium-inverted);
}
.mega-input.title-ontop.with-icon .mega-input-title {
    padding-inline-start: 35px;
}

/* Move "titleTop" placeholder  to the top for Active inputs/Box type inputs/Dropdowns */
.mega-input.title-ontop.active .mega-input-title,
.mega-input.title-ontop.valued .mega-input-title,
.mega-input.title-ontop.birth .mega-input-title,
.mega-input.title-ontop.dropdown-input .mega-input-title,
.mega-input.title-ontop.box-style .mega-input-title {
    top: -20px;
    color: var(--text-color-low);
    font: var(--text-body2);
}

/* Smaller font size input */
.mega-input.small-txt input {
    font: var(--text-body1);
}
.mega-input.title-ontop.small-txt .mega-input-title,
.mega-input.title-ontop.active.small-txt .mega-input-title,
.mega-input.title-ontop.valued.small-txt .mega-input-title {
    font: var(--text-body2);
}
.mega-input.small-txt input::placeholder {
    font: var(--text-body2);
}

/* Input types */

/* Dropdown input type */
.mega-input.dropdown-input {
    cursor: pointer;
    min-width: 150px;
}
.mega-input.dropdown-input input {
    height: 0;
    padding: 0;
    position: absolute;
    margin: 0;
    min-width: auto;
    width: 0;
}
.mega-input.dropdown-input > span {
    cursor: pointer;
    z-index: auto;
}

/* Dropdown styling */
.mega-input-dropdown {
    background: var(--surface-main);
    border: var(--context-menu-border);
    border-radius: 12px;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    font-size: 0;
    min-width: 200px;
    padding: 8px 0;
    position: absolute;
    transition: var(--transition-opacity);
    z-index: 150;
}
.mega-input .mega-input-dropdown {
    left: -9px;
    min-width: calc(100% + 16px);
    top: -7px;
}
.ps .mega-input .mega-input-dropdown {
    min-width: auto;
    position: fixed;
}
.mega-input-dropdown .dropdown-scroll {
    max-height: 288px;
    max-width: 100%;
    position: relative;
    z-index: 1;
}
.mega-input-dropdown .option {
    --mask-color: var(--icon-rest);
    align-items: center;
    background: var(--surface-main);
    border-radius: 4px;
    color: var(--text-color-medium);
    cursor: pointer;
    display: flex;
    font: var(--text-body1);
    margin: 0 8px;
    min-height: 32px;
    outline: none;
    padding: 0 8px;
    text-align: start;
    transition: var(--transition-bg-color), var(--transition-color);
}
.mega-input-dropdown .ps--active-y .option {
    margin-right: 14px;
}

.mega-input-dropdown .option.template {
    display: none;
}
.mega-input-dropdown .option span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mega-input-dropdown .option:not(.disabled):hover,
.mega-input-dropdown .option.active {
    --mask-color: var(--icon-active);
    background: var(--button-hover);
    color: var(--text-color-high);
}
.mega-input-dropdown .option i {
    --icon-size: 24px;
    margin: 0;
    margin-inline-end: 8px;
    transition: var(--transition-color);
}
.mega-input-dropdown .option span + i {
    margin: 0;
    margin-inline-start: 8px;
}
.mega-input-dropdown .option i.icon-check {
    --icon-size: 16px;
    display: none;
}
.mega-input-dropdown .option.active i.icon-check {
    display: block;
}

/* Error/warning message containers */
.mega-input .message-container {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
}
.mega-input .message-container,
.mega-input-wrapper .message-container {
    display: none;
    text-align: center;
    box-sizing: border-box;
    border-radius: 4px;
    color: var(--banner-text-info);
    border: 1px solid var(--banner-border-info);
    background: var(--banner-background-info);
    font: var(--text-body1);
    padding: 2px;
    white-space: normal;
    text-overflow: ellipsis;
}
.mega-input-wrapper .message-container {
    margin-top: 5px;
}
.mega-input.halfSize-l .message-container {
    width: 208%;
}
.mega-input.error .message-container,
.mega-input-wrapper.error .message-container {
    color: var(--banner-text-error);
    border-color: var(--banner-border-error);
    background: var(--banner-background-error);
}
.mega-input.success .message-container {
    color: var(--banner-text-success);
    border-color: var(--banner-border-success);
    background: var(--banner-background-success);
}
.mega-input.warning .message-container {
    color: var(--banner-text-warning);
    border-color: var(--banner-border-warning);
    background: var(--banner-background-warning);
}
.mega-input.error .message-container a,
.mega-input.error .message-container a:link,
.mega-input.error .message-container a:visited {
    color: inherit;
    text-decoration: underline;
}
.mega-input.msg .message-container,
.mega-input.fix-msg .message-container {
    display: inline-block;
}
.mega-input-wrapper.msg .message-container,
.mega-input-wrapper.fix-msg .message-container {
    display: block;
}
.mega-input.fix-msg .message-container {
    padding: 0;
    text-align: left;
    color: var(--text-color-medium);
    border: none;
    background: none;
}
.mega-input.fix-msg.error .message-container {
    color: var(--banner-text-error);
}
.mega-input .pass-visible {
    opacity: 0.7;
    transition: opacity 200ms;
    right: 4px;
    z-index: 12;
    cursor: pointer;
}
.mega-input .pass-visible:hover {
    opacity: 1;
}
/* Password strength Checker - Bar */
.mega-input .account-pass-lines {
    background: var(--surface-mid-grey);
    border-radius: 2px;
    margin-inline-end: 4px;
}
.mega-input .register-pass-status-line {
    border-radius: 2px;
    height: 20px;
}
.mega-input .good1 .register-pass-status-line {
    background-color: var(--password-status-veryweak);
    height: 4px;
    margin-top: 16px;
    width: 4px;
}
.mega-input .good2 .register-pass-status-line {
    background-color: var(--password-status-weak);
    height: 8px;
    margin-top: 12px;
    width: 4px;
}
.mega-input .good3 .register-pass-status-line {
    background-color: var(--password-status-medium);
    height: 12px;
    margin-top: 8px;
    width: 4px;
}
.mega-input .good4 .register-pass-status-line {
    background-color: var(--password-status-good);
    height: 16px;
    margin-top: 4px;
    width: 4px;
}
.mega-input .good5 .register-pass-status-line {
    background-color: var(--password-status-strong);
    height: 20px;
    margin-top: 0;
    width: 4px;
}

/* Password strength Checker - Text */
.mega-input .account.password-status {
    color: var(--password-status-veryweak);
    display: none;
    font-size: 14px;
    font-family: var(--text-font-family);
    font-weight: 900;
    line-height: 24px;
    margin: 0 4px;
}
.mega-input .account.password-status.good2 {
    color: var(--password-status-weak);
}
.mega-input .account.password-status.good3 {
    color: var(--password-status-medium);
}
.mega-input .account.password-status.good4 {
    color: var(--password-status-good);
}
.mega-input .account.password-status.good5 {
    color: var(--password-status-strong);
}
.mega-input .account.password-status.checked {
    display: block;
}
.pm.mega-input .account.password-status {
    font: var(--mobile-font-caption-large-regular);
    display: none;
    align-items: center;
    position: absolute;
    top: 41px;
    left: 0;
    width: 100%;
    margin: 10px 0 24px;
}
.pm.mega-input .account.password-status.checked {
    display: flex;
}
.strength-checker.strong,
.mega-input .account.password-status.strong {
    color: var(--mobile-text-success);
}
.strength-checker.moderate,
.mega-input .account.password-status.moderate {
    color: var(--mobile-text-warning);
}
.pm-main .password-list-page span,
.pm-main .password-list-page p {
    font: var(--mobile-font-caption-large-regular);
}

/* Input loading */
.mega-input .register-loading-icon {
    display: none;
    background: rgba(0, 0, 0, 0) url("../images/mega/ajax-loader-gray.gif") no-repeat scroll 0 0 / 16px 16px;
    height: 16px;
    width: 16px;
}
.mega-input .loading .register-loading-icon {
    display: block;
}
.mega-input .register-loading-icon img {
    width: 16px;
}

/*
  * Scrollable textarea, old style. Used in cancel subscriptio/feedback
  * TODO: replace with default component
 */
.mega-textarea {
    background: var(--surface-grey-1);
    border: 1px solid var(--stroke-grey-2);
    border-radius: 2px;
    box-sizing: border-box;
    margin-top: 16px;
    padding: 0;
}
.mega-textarea textarea,
.mega-textarea .textarea-clone {
    color: var(--text-color-medium);
    background: var(--surface-grey-1);
    border: 0;
    box-sizing: border-box;
    display: block;
    font: var(--text-body1);
    height: 80px;
    margin: 0;
    min-height: 80px;
    overflow: hidden;
    padding: 0 12px;
    position: relative;
    resize: none;
    width: 100%;
    word-break: break-word;
    z-index: 1;
}
.mega-textarea .textarea-clone {
    height: auto;
    opacity: 0;
    position: absolute;
    visibility: hidden;
    top: 0;
}
.mega-textarea .textarea-scroll {
    line-height: 0;
    margin: 8px 0;
    max-height: 80px;
}

/* Mobile Revamp Version */
.mobile.mega-input,
.pm.mega-input {
    padding: 1px;
}
.mobile.mega-input::before,
.pm.mega-input::before {
    display: none;
}
.mobile.mega-input.box-style,
.pm.mega-input.box-style {
    width: 100%;
    border-radius: var(--mobile-border-radius-medium);
    height: 47px;
    border: 1px solid var(--mobile-border-strong);
    background: var(--mobile-page-background);
}
.mobile.mega-input.box-style.fixed-width,
.pm.mega-input.box-style.fixed-width {
    max-width: var(--mobile-elem-max-width);
}
.mobile.mega-input.box-style.active,
.pm.mega-input.box-style.active {
    border-color: var(--mobile-border-strong-selected);
}
.mobile.mega-input.box-style.warning,
.pm.mega-input.box-style.warning {
    border-color: var(--mobile-support-warning);
}
.mobile.mega-input.box-style.error,
.pm.mega-input.box-style.error {
    border-color: var(--mobile-support-error);
}
.mobile.mega-input.box-style.readonly,
.pm.mega-input.box-style.readonly {
    background: var(--mobile-button-disabled);
    border-color: var(--mobile-border-disabled);
}
.mobile.mega-input.box-style.readonly input.megaInputs,
.pm.mega-input.box-style.readonly input.megaInputs {
    color: var(--mobile-text-disabled);
}
.mobile.mega-input.box-style input,
.mobile.mega-input input::placeholder,
.pm.mega-input.box-style input,
.pm.mega-input.box-style textarea,
.pm.mega-input input::placeholder {
    font: var(--mobile-font-input-regular);
    color: var(--mobile-text-placeholder);
    -webkit-opacity: 1;
}
.pm.mega-input input.enter-pass::placeholder {
    font: var(--text-body2);
}
.mobile.mega-input.error .message-container,
.mobile.mega-input-wrapper.error .message-container,
.pm.mega-input.error .message-container,
.pm.mega-input-wrapper.error .message-container {
    color: var(--mobile-support-error);
}
.mobile.mega-input.msg-left .message-container,
.pm.mega-input.msg-left .message-container {
    text-align: left;
}
.mobile.mega-input.error .message-container i,
.pm.mega-input.error .message-container i {
    margin-inline-end: 8px;
    vertical-align: text-bottom;
}
.mobile.mega-input input.megaInputs:not(:placeholder-shown),
.pm.mega-input input.megaInputs:not(:placeholder-shown),
.pm.mega-input textarea.megaInputs:not(:placeholder-shown) {
    color: var(--mobile-text-primary);
}
.mobile.mega-input.title-ontop {
    margin: 36px 0 16px;
}
.mobile.mega-input > i,
.mobile.mega-input:hover > i,
.mobile.mega-input.active > i,
.pm.mega-input > i,
.pm.mega-input:hover > i,
.pm.mega-input.active > i {
    --icon-size: 20px;
    --mask-color: var(--mobile-icon-secondary);
    opacity: 1;
}
.mobile.mega-input input,
.pm.mega-input input {
    padding: 14px 12px;
    box-sizing: border-box;
}
.mobile.mega-input.title-ontop.box-style .mega-input-title,
.pm.mega-input.title-ontop.box-style .mega-input-title {
    font: var(--mobile-font-caption-large-bold);
    padding-inline-start: 0;
    color: var(--mobile-text-primary);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    top: -24px;
}
.mobile.mega-input .message-container,
.pm.mega-input .message-container {
    font: var(--mobile-font-caption-large-regular);
    border: 0;
    background: none;
    text-align: start;
    top: 51px;
}
.mobile.mega-input.info .message-container,
.pm.mega-input.info .message-container {
    color: var(--mobile-text-secondary);
    display: flex;
}
.mobile.mega-input.warning .message-container,
.pm.mega-input.warning .message-container {
    color: var(--mobile-text-warning);
    display: flex;
}
.mobile.mega-input.error .message-container,
.pm.mega-input.error .message-container {
    color: var(--mobile-text-error);
    display: flex;
}
.mobile.mega-input.error .message-container .alert,
.mobile.mega-input.msg .message-container i,
.pm.mega-input.error .message-container .alert,
.pm.mega-input.msg .message-container i {
    display: inline-block;
    vertical-align: top;
    margin-top: 3px;
    margin-inline-end: 8px;
}
.mobile.mega-input .length-check,
.pm.mega-input .length-check {
    position: absolute;
    top: 100%;
    right: 0;
    color: var(--mobile-text-secondary);
    font: var(--mobile-font-caption-large-regular);
    margin-top: 2px;
}

/* Mobile textarea */

.mobile.mega-input.textarea,
.pm.mega-input.textarea {
    padding: 14px 12px;
    width: 100%;
    height: 142px;
    resize: none;
    align-items: flex-start;
}

.mobile.mega-input.textarea textarea,
.pm.mega-input.textarea textarea {
    font: var(--mobile-font-copy-regular);
    color: var(--mobile-text-primary);
    overflow: hidden;
    padding: 0;
    height: 100%;
    white-space: pre-wrap;
}

.mobile.mega-input.textarea textarea::placeholder,
.pm.mega-input.textarea textarea::placeholder {
    font: var(--mobile-font-copy-regular);
}

.mobile.mega-input.textarea i,
.pm.mega-input.textarea i {
    margin-inline-end: 0;
}

/* Textarea with auto height */

.mobile.mega-input.textarea.box-style.auto-height,
.pm.mega-input.textarea.box-style.auto-height {
    align-items: center;
    height: auto;
    min-height: 47px;
    padding: 9px 6px;
}

.mobile.mega-input.textarea.box-style.auto-height textarea,
.pm.mega-input.textarea.box-style.auto-height textarea {
    display: block;
    height: 24px;
    overflow: auto;
    padding: 0 6px;
    min-height: 24px;
}

.mobile.mega-input.textarea.box-style.auto-height textarea ~ i,
.pm.mega-input.textarea.box-style.auto-height textarea ~ i {
    margin: 0;
    margin-inline-end: 6px;
}

.mobile.mega-input.textarea.box-style.auto-height .message-container,
.pm.mega-input.textarea.box-style.auto-height .message-container {
    top: calc(100% + 6px);
}

/* End of Mobile textarea */

.mobile.mega-input.strengthChecker.msg:not(.error),
.pm.mega-input.strengthChecker.msg:not(.error) {
    border-color: var(--stroke-mid-grey);
}

.mobile.mega-input.strengthChecker.msg.active:not(.error),
.pm.mega-input.strengthChecker.msg.active:not(.error) {
    border-color: var(--mobile-border-strong-selected);
}

.mobile.mega-input.strengthChecker.msg:not(.error) .message-container,
.pm.mega-input.strengthChecker.msg:not(.error) .message-container {
    color: var(--mobile-text-secondary);
    display: flex;
}

.mobile.mega-input.strengthChecker .account-pass-lines,
.pm.mega-input.strengthChecker .account-pass-lines {
    position: absolute;
    top: 52px;
    background: none;
    width: 100%;
}

.mobile.mega-input.strengthChecker .message-container,
.pm.mega-input.strengthChecker .message-container {
    top: 60px;
}

.mobile.mega-input.strengthChecker:not(.error) .good1.message-container i,
.mobile.mega-input.strengthChecker:not(.error) .good2.message-container i,
.pm.mega-input.strengthChecker:not(.error) .good1.message-container i,
.pm.mega-input.strengthChecker:not(.error) .good2.message-container i {
    color: var(--mobile-support-error);
}

.mobile.mega-input.strengthChecker:not(.error) .good3.message-container i,
.pm.mega-input.strengthChecker:not(.error) .good3.message-container i {
    color: var(--mobile-support-warning);
}

.mobile.mega-input.strengthChecker:not(.error) .good4.message-container i,
.mobile.mega-input.strengthChecker:not(.error) .good5.message-container i,
.pm.mega-input.strengthChecker:not(.error) .good4.message-container i,
.pm.mega-input.strengthChecker:not(.error) .good5.message-container i {
    color: var(--mobile-support-success);
}

.pm.mega-input input:-webkit-autofill,
.mobile.mega-input input:-webkit-autofill {
    padding: 2px 8px !important;
    box-shadow: 0 0 0 50px var(--mobile-page-background) inset;
}

.export-links-settings-dialog .pm.mega-input.strengthChecker {
    margin-bottom: 2rem;
    height: 36px;
    box-sizing: border-box;
    line-height: 12px;
    width: 268px;
}

.export-links-settings-dialog .pm.mega-input.strengthChecker input {
    padding: 10px;
}

.mega-sheet.export-links-settings-dialog .account.password-status {
    top: 32px;
}

/* Hide the password reveal button in Microsoft Edge */
.mega-input input[type="password"]::-ms-reveal {
    display: none;
}
